﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Lehnet.Models;

namespace Lehnet.WebUI.Helpers
{
    public static class SessionHelper
    {
        public static Models.Personel Personel
        {
            get
            {
                if (System.Web.HttpContext.Current.Session["Personel"] == null)
                    return null;
                return (Models.Personel) System.Web.HttpContext.Current.Session["Personel"];
            }
            set { System.Web.HttpContext.Current.Session["Personel"] = value; }
        }

        public static Models.MusteriPersonel MusteriPersoneli
        {
            get
            {
                if (System.Web.HttpContext.Current.Session["MusteriPersoneli"] == null)
                    return null;
                return (Models.MusteriPersonel)System.Web.HttpContext.Current.Session["MusteriPersoneli"];
            }
            set { System.Web.HttpContext.Current.Session["MusteriPersoneli"] = value; }
        }
    }
}